package com.lebang.mapper;

import com.lebang.configuration.datasource.DataSource;
import com.lebang.entity.task.TaskComments;
import com.lebang.example.TaskCommentsExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TaskCommentsMapper {
    @DataSource("commonDB")
    long countByExample(TaskCommentsExample example);

    int deleteByExample(TaskCommentsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TaskComments record);

    @DataSource("commonDB")
    int insertSelective(TaskComments record);

    List<TaskComments> selectByExampleWithBLOBs(TaskCommentsExample example);

    @DataSource("commonDB")
    List<TaskComments> selectByExample(TaskCommentsExample example);

    @DataSource("commonDB")
    TaskComments selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TaskComments record, @Param("example") TaskCommentsExample example);

    int updateByExampleWithBLOBs(@Param("record") TaskComments record, @Param("example") TaskCommentsExample example);

    int updateByExample(@Param("record") TaskComments record, @Param("example") TaskCommentsExample example);

    @DataSource("commonDB")
    int updateByPrimaryKeySelective(TaskComments record);

    int updateByPrimaryKeyWithBLOBs(TaskComments record);

    int updateByPrimaryKey(TaskComments record);

    @DataSource("commonDB")
    void updatetodaytotal();

    @DataSource("commonDB")
    TaskComments getByTaskId(String taskid);
}